from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib import admin
from django.conf import settings
from fblaproj.static import views
admin.autodiscover()

urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),
	url('^$', views.gen_index, name="fbla_index"),
	url('^about/$', views.gen_about, name="fbla_about"),
	url(r'^login/', include('login.urls'), name="fbla_login"),
	url(r'^panel/', include('panel.urls'), name="fbla_panel"),
	url(r'^register/', include('register.urls'), name="fbla_reg_gen"),
	(r'^media/(?P<path>.*)$', 'django.views.static.serve',
	        {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
)
